﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Threading;
using System.Globalization;
using System.Resources;

using EHTWebsite.Code;

namespace EHTWebsiteProject.Controls
{
    public partial class DanhMucControl : System.Web.UI.UserControl
    {
        public Boolean IsVN = true;
        String languageCode = "vi-VN";
        private ResourceManager rm = new ResourceManager("Resources.SiteMap", System.Reflection.Assembly.Load("App_GlobalResources"));

        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                languageCode = Session[HangSo.LANGUAGE_CODE].ToString();

                if (languageCode == "en-us")
                {
                    IsVN = false;
                }

            }
            catch (Exception ex)
            {
            }

            if (!Page.IsPostBack)
            {
                Int32 totalRecord = 0;
                Int32 danhMucMoRongID = 5;
                DataSet dsTinTucMoRong = TinTucProvider.GetTinTucsByFillterForBackEnd("", "", danhMucMoRongID, 1, 100, out totalRecord);
                this.rpDanhMucMoRong.DataSource = dsTinTucMoRong;
                this.rpDanhMucMoRong.DataBind();
            }
        }

        public String FormatStringForUrl(String input)
        {
            return HelpMethod.FormatStringForUrl(input);
        }
    }
}